<script setup lang="ts">
import { ref } from 'vue';
import Child from './Child.vue';

const child = ref<InstanceType<typeof Child> | null>(null)

</script>

<template>
    <div>
        <button @click="child?.addOne" ref="child">+1</button>
        <Child ref="child" />
    </div>
</template>
